package tech.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.aistar.entity.Intention;
import tech.aistar.mapper.IntentionMapper;
import tech.aistar.service.IIntentionService;

import java.util.List;


@Service
public class IntentionImpl implements IIntentionService {
    @Autowired
    private IntentionMapper intentionMapper;
    @Override
    public List<IntentionMapper> selectAll() {
        return intentionMapper.selectAll();
    }

    @Override
    public void insert(IntentionMapper intention) {
intentionMapper.insert(intention);
    }

    @Override
    public void updateByPrimaryKey(IntentionMapper intention) {
intentionMapper.updateByPrimaryKey(intention);
    }

    @Override
    public void deleteByPrimaryKey(Integer id) {
intentionMapper.deleteByPrimaryKey(id);
    }

    @Override
    public Intention selectById(Integer tenantId) {
        return intentionMapper.selectById(tenantId);
    }

    @Override
    public int updateByTenantId(Intention intention) {
        return intentionMapper.updateByTenantId(intention);
    }

    @Override
    public int updateDemandByTenantId(Intention intention) {
        return intentionMapper.updateDemandByTenantId(intention);
    }

    @Override
    public int insertTenantId(Integer tenantId) {
        return intentionMapper.insertTenantId(tenantId);
    }
}
